package org.hxzon.tapestry5.components;

import org.apache.tapestry5.MarkupWriter;
import org.apache.tapestry5.annotations.BeginRender;
import org.apache.tapestry5.annotations.Parameter;

public class WhiteSpace {
    @Parameter(value = "1")
    private int spaceNum;

    @BeginRender
    void beginRender(MarkupWriter writer) {
        for (int i = 0; i < spaceNum; i++) {
            writer.writeRaw("&nbsp;");
        }
    }
}
